package com.ytkj.tradeserver.constant;

/**
 * Created by Administrator on 2017/3/11.
 */
public interface ComConstants {

    /**用户密码后缀*/
    public static final String PWD_SUFFIX = "_szxjdgs";

    /**资源路径地址*/
    public static final String UPLOAD_FILE_DIRECTORY = "/resources/file/";

    public static final String UPLOAD_FILE_DIRECTORY_2 = "resources/file/";

    /**默认当前分页数量*/
    public static final String PAGENUM = "1";

    /**每页的条数*/
    public static final String PAGESIZE = "2";

    public static final String REQUESTTYPE_GET = "GET";

    public static final String REQUESTTYPE_POST = "POST";

    /**登录链接地址*/
    public static final String LOGIN_URL = "/view/login.jsp";

    public enum FILETYPE{
        APP("00"),
        ArticleSmallPic("01");

        private String code;

        private FILETYPE(String code){
            this.code = code;
        }

        public String getValue() {
            return this.code;
        }

    }

    public enum RESPONSECODE{
        SUCCESS("0000"),SUCCESSMSG("请求成功!"),
        FAIL("9999"),FAILMSG("请求失败!"),
        NOTFOUND("0001"),NOTFOUNDMSG("未查询到数据"),
        NOTPARAMETER("0002"),NOTPARAMETERMSG("缺少必要参数信息"),
        REGSUCCESS("0003"),REGSUCCESSMSG("注册成功!"),
        REPEATREG("0004"),REPEATREGMSG("账号已被注册!"),
        REGFAIL("0005"),REGFAILMSG("注册失败!"),
        STORED("0006"),STOREDMSG("您已收藏!"),
        LOVED("0007"),LOVEDMSG("您已点赞!");

        private String code;
        private RESPONSECODE(String code){
            this.code = code;
        }
        public String getValue() {
            return this.code;
        }
    }
}
